<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function onchangeFun() {
            alert("女神改变了");
        }
        window.onchange = function () {
            //1 获取标签对象
            var select = document.getElementById("select");
            // alert( selObj );
            //2 通过标签对象.事件名 = function(){}
            select.onclick = function () {
                alert("男神改变了")
            }
        }
    </script>
</head>
<body>
    <select onchange="onchangeFun()">
        <option>请选择女神</option>
        <option>迪丽热巴</option>
        <option>Anglebaby</option>
        <option>杨幂</option>
    </select>
    <select id = "select">
        <option>请选择男神</option>
        <option>吴亦凡</option>
        <option>蔡徐坤</option>
        <option>鹿晗</option>
    </select>

</body>
</html>